<?php
$ArProfiles = Dracosys::getSessionValue(SESSION_INTERFACE, 'ProfileList');
$ProfileSelected = Dracosys::getSessionValue(SESSION_INTERFACE, 'ProfileSelected');

if (!empty($ArProfiles)):
    foreach ($ArProfiles as $Profile):
        $StSelected = !empty($ProfileSelected) && $Profile->equals($ProfileSelected) ? 'selected="selected"' : '';
        ?>
        <option value="<?= $Profile->getIDPerfil() ?>" <?= $StSelected ?>><?= $Profile->getStPerfil() ?></option>
        <?php
    endforeach;
endif;
?>

